import { defineConfig } from "vite";
import react from '@vitejs/plugin-react';
import tsconfigPath from 'vite-tsconfig-paths';

// https://vitejs.dev/config/
export default defineConfig({
  server: {
    proxy: {
      '/api': 'http://template.jsoephixa.com'
    }
  },
  plugins: [tsconfigPath(), react()],
  css: {
    modules: {
      hashPrefix: 'prefix',
    },
    preprocessorOptions: {
      less: {
        javascriptEnabled: true
      }
    }
  }
})
